package com.atguigu.c_oop;

public class Phone {
    //属性
    private String brand;
    private int price;
    private String color;
    private String type;
    private String size;

    //快速生成构造方法的快捷键 : alt + fn + insert[ins]
    public Phone() {
    }

    public Phone(String brand, int price, String color, String type, String size) {
        this.brand = brand;
        this.price = price;
        this.color = color;
        this.type = type;
        this.size = size;
    }
   //快速生成getter and setter方法的快捷键 : alt + fn + insert[ins]

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public int getPrice() {
        return price;
    }

    public void setPrice(int price) {
        this.price = price;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }

    //行为
}
